#include "friendstimelinetab.h"

#include <QVariant>
#include <QString>
#include <QTimer>
#include <QLabel>

FriendsTimelineTab::FriendsTimelineTab( QWidget * parent ) 
    : WhaleStreamTab( parent ) {

    QLabel * title = new QLabel( "Friends timeline" );
    title->setStyleSheet( "QLabel { font-weight: bold; margin-left: 10px; }" );
    this->setTitle( title );

    this->mConnector = new WhaleTwitterConnect();
    this->addConnector( this->mConnector ); // parent

    this->mConnector->watchFriendsTimeline();
}

WhaleTweetEntry * FriendsTimelineTab::newEntry( QVariantMap data, QString streamName ) {
    return new WhaleTweetEntry( data );
}
